const reducer = (state = {
  booklist: []
}, action) => {
  
  const { type, data } = action;
  switch (type) {
    case 'CHANGE_MOVIE_LIST': 
      return {
        booklist: data
      };
    default:
      return state;
  }
}

export default reducer